include(`foreachq.m4')dnl
include(`config.m4')dnl

@node Posts
@chapter Posts

@menu
foreachq(`__file',`__post_files',`dnl
changequote(`[', `]')dnl
define([__title], esyscmd([awk "/@section/ {$ 1=\"\"; print \"[[]\" $ 0 \"[]]\" }"] __file | tr -d \\n))dnl
define([__node],  esyscmd([awk "/@node/    {$ 1=\"\"; print \"[[]\" $ 0 \"[]]\" }"] __file | tr -d \\n))dnl
define([__date],  esyscmd([awk "/@date/    {$ 1=\"\"; print \"[[]\" $ 0 \"[]]\" }"] __file | tr -d \\n))dnl
* __title: __node.             __date changequote
')dnl
@end menu

foreachq(`__file',`__post_files',`dnl
@include __file
')dnl
